﻿using Microsoft.TeamFoundation.VersionControl.Client;

namespace TFSMailer.Classes
{
    public class TFSWorkspace 
    {

        public static Workspace[] GetWorkspaces(VersionControlServer sourcecontrol)
        {
            return sourcecontrol.QueryWorkspaces(null, sourcecontrol.AuthenticatedUser, System.Net.Dns.GetHostName().ToString());
        }
    }
}
